import request from "@/utils/request";

export const userLogin = (params) => {
    return request.post('/admin/login',params);
};

export const goodsTotal=()=>{
    return request.get("/statistic/product");
};

export const userNum=()=>{
    return request.get("/statistic/user");
};

export const getBannerList=()=>{
    return request.get("/banner/list")
}

export const bannerDelete=(params)=>{
    return request.get(`/banner/delete?bannerid=${params}`);
}

export const createBanner=(params)=>{
    return request.post("/banner/add",params);
}

export const getProductList=(params)=>{
    return request.get(`/pro/list?count=${params.count}&limitNum=${params.limitNum}`);
}

export const getView=()=>{
    return request.get("data/simpleData")
}